package com.lixixi.tingshu.album.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lixixi.tingshu.model.album.AlbumStat;
import com.lixixi.tingshu.vo.album.AlbumStatVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AlbumStatMapper extends BaseMapper<AlbumStat> {
	AlbumStatVo selectAlbumStatById(@Param("id") Long id);

	List<AlbumStatVo> selectAlbumStatByIdBatch(List<Long> albumIdList);

	void updateAlbumStat(@Param("statType") String statType, @Param("count") Integer count, @Param("albumId") Long albumId);
}
